package com.software.cool.service;

import com.software.cool.entity.Page;

import java.util.List;

/**
 * BaseService
 * @param <T>
 */
public interface IBaseService<T, ID, EXAMPLE>{

    List<T> selectList(T entity)throws Exception;

    List<T> selectListBySQL(T entity) throws Exception;

    Page selectPage(Integer pageNo, Integer pageSize, T entity)throws Exception;

    T get(Long id)throws Exception;

    T get(T entity)throws Exception;

    void add(T entity)throws Exception;

    void update(T entity)throws Exception;

    void del(Long id)throws Exception;

    void addList(List<T> list)throws Exception;

    void updateList(List<T> entity)throws Exception;

    void delList(Long[] ids)throws Exception;
}
